window.onresize=function(){
    change();
}
change();
function change(){
  var oFs=document.documentElement.clientWidth/(320/20);
  document.documentElement.style.fontSize=oFs+'px';
}